﻿using Inovout.Models;
using Inovout.Services;
using System;

namespace Inovout.Settings
{
    public class ObjectSettingsService : RepositoryService<ObjectSettings>
    {
        protected ObjectSettingsRepository ObjectSettingsRepository
        {
            get { return (ObjectSettingsRepository)base.Repository; }
        }
        public ObjectSettings FindByScopeAndKindType(DataObject scope, Type kindType)
        {
            return ObjectSettingsRepository.FindByScopeAndKindType(scope, kindType);
        }
        public ObjectSettings FindByScopeAndKindType(Enum scope, Type kindType)
        {
            return ObjectSettingsRepository.FindByScopeAndKindType(scope, kindType);
        }
        public ObjectSettings FindByKeyAndKindType(string key, Type kindType)
        {
            return ObjectSettingsRepository.FindByKeyAndKindType(key, kindType);
        }
    }
}
